package com.wj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 预约设置
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_ordersetting")
public class OrderSetting implements Serializable{
    @TableId(type = IdType.AUTO)
    private Integer id ;

    /**
     * 预约设置日期
     */
    private Date orderDate;

    /**
     * 可预约人数
     */
    private int number;

    /**
     * 已预约人数
     */
    private int reservations ;

    public OrderSetting(Date date, Integer number) {
        this.orderDate = date;
        this.number = number;
    }

}
